﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<iBuproModel.User>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ListLectors
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ListLectors</h2>

    <table>
        <thead>
        <tr>
            <th></th>
            <th>
                FirstName
            </th>
            <th>
                LastName
            </th>
            <th>
                Email
            </th>
            <th>
                Username
            </th>
            <th>
                Enroll to subject
            </th>

        </tr>
        </thead>

        <tbody>
    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Detail", "Detail", new { id=item.Id })%> |
            </td>
            <td>
                <%: item.FirstName %>
            </td>
            <td>
                <%: item.LastName %>
            </td>
            <td>
                <%: item.Email %>
            </td>
            <td>
                <%: item.Username %>
            </td>
            <td>
                <%:Html.ActionLink("Enroll to subject", "EnrollToSubject", "Lector", new { id = item.Id }, null)%>
            </td>
        </tr>
    
    <% } %>
    </tbody>

    </table>

</asp:Content>

